#!/bin/sh

# configure system profile
echo 1 > /proc/sys/net/ipv4/ip_forward

# configure eth0 -- IPv4 interface to the HGW
ifconfig eth0 down
ifconfig eth0 up
ifconfig eth0 192.168.1.1/24
ip route add 202.38.111.0/24 via 192.168.1.2 dev eth0

# configure eth1 -- IPv4 interface to the internet
ifconfig eth1 down
ifconfig eth1 up
ifconfig eth1 202.38.101.2/27
ip route add default via 202.38.101.1 dev eth1
